Skip to content

Feature/issue 214 groovy cache sync 17x - #218

Merged
xlorne merged 2 commits into
17.3.xfrom
feature/issue-214-groovy-cache-sync-17x
Nov 10, 2026
Merged

xlorne merged 2 commits into
17.3.xfrom
feature/issue-214-groovy-cache-sync-17x

Conversation

@xlorne

@xlorne xlorne commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Describe what this PR does / why we need it

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Special notes for reviews

- 新增 GroovyScriptCacheEvent(ISyncEvent):脚本保存/删除后经 EventPusher 进程内分发,业务可通过 IHandler 监听脚本变更
- 新增 GroovyScriptCacheSync SPI(默认 LocalGroovyScriptCacheSync):多实例部署时可接入 Redis pub/sub 等实现跨实例广播,远端实例 receive 后失效本地缓存并回源仓储
- 新增 GroovyScriptCache 缓存容器接口与 DefaultGroovyScriptCache:LRU 容器抽象为可替换策略,支持 Redis 等共享缓存实现
- GroovyScript.save()/remove() 写路径发布缓存变更事件;GroovyScriptCacheContext.remove 改为纯本地失效

Closes #214
…ript)

- 能力文档新增多实例部署章节:部署前提(共享仓储 + 跨实例失效同步)
- 提供 Redis pub/sub 失效同步(GroovyScriptCacheSync)完整实现示例(推荐方案)
- 提供 Redis 共享缓存容器(GroovyScriptCache)实现示例(可选方案)
- 补充行为说明与注意事项(回环过滤、SHA256 编译缓存自愈、临时脚本进程内语义)

Ref #214
@xlorne
xlorne merged commit 10bc527 into 17.3.x Nov 10, 2026
4 checks passed
@xlorne
xlorne deleted the feature/issue-214-groovy-cache-sync-17x branch November 10, 2026 11:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant